package com.zhumei.keyscale.net;

import java.io.*;

public class BaseResponse<T> implements Serializable
{
    private T data;
    private int resCode;
    private String resMsg;
    
    public T getData() {
        return this.data;
    }
    
    public int getResCode() {
        return this.resCode;
    }
    
    public String getResMsg() {
        return this.resMsg;
    }
    
    public void setData(final T data) {
        this.data = data;
    }
    
    public void setResCode(final int resCode) {
        this.resCode = resCode;
    }
    
    public void setResMsg(final String resMsg) {
        this.resMsg = resMsg;
    }
    
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("BaseResponse{data=");
        sb.append(this.data);
        sb.append(", resMsg='");
        sb.append(this.resMsg);
        sb.append('\'');
        sb.append(", resCode=");
        sb.append(this.resCode);
        sb.append('}');
        return sb.toString();
    }
}
